//
//  WBDataHelper.swift
//  Swift-WB
//
//  Created by lxy on 2017/6/12.
//  Copyright © 2017年 lixiya. All rights reserved.
//

import UIKit
import Alamofire
import SwiftyJSON
import HandyJSON

class WBDataHelper: NSObject {

    static let shared = WBDataHelper()
    private override init() {}

 
    // 获取当前登录用户及其所关注用户的最新微博
    func wbFetchStatusList(parameters: Parameters, success: @escaping Success, failure: @escaping Failure) {
        let url = "https://api.weibo.com/2/statuses/home_timeline.json"
        
        HttpsTools.shared.get(url: url, parameters: parameters, success: { (response) in
            
            success(response)
        }) { (error) in
            failure(error)
        }
    }
    
    
}
